package co.com.ticci.autolavado.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the ticci_servicio database table.
 * 
 */
@Entity
@Table(name="ticci_servicio")
@NamedQuery(name="TicciServicio.findAll", query="SELECT t FROM TicciServicio t")
public class TicciServicio implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private TicciServicioPK id;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="SERV_FECHA")
	private Date servFecha;

	@Column(name="SERV_NUMERO_ORDEN")
	private BigDecimal servNumeroOrden;

	@Column(name="SERV_OBSERVACION")
	private String servObservacion;

	@Column(name="SERV_TIEMPO_APROX")
	private BigDecimal servTiempoAprox;

	@Column(name="SERV_VALOR_TOTAL")
	private BigDecimal servValorTotal;

	@Column(name="VEHI_CONS")
	private Long vehiCons;
	
	@Column(name="CLIE_CONS")
	private Long clieCons;
	
	//bi-directional many-to-one association to TicciAcceXServ
	@OneToMany(mappedBy="ticciServicio")
	private List<TicciAcceXServ> ticciAcceXServs;

	//bi-directional many-to-one association to TicciConcXServ
	@OneToMany(mappedBy="ticciServicio")
	private List<TicciConcXServ> ticciConcXServs;



	//bi-directional many-to-one association to TicciCliente
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name="CLIE_CONS", referencedColumnName="CLIE_CONS", insertable=false, updatable=false),
		@JoinColumn(name="EMPR_CONS", referencedColumnName="EMPR_CONS", insertable=false, updatable=false)
		})
	private TicciCliente ticciCliente;

	//bi-directional many-to-one association to TicciVehiculo
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumns({
		@JoinColumn(name="EMPR_CONS", referencedColumnName="EMPR_CONS", insertable=false, updatable=false),
		@JoinColumn(name="VEHI_CONS", referencedColumnName="VEHI_CONS", insertable=false, updatable=false)
		})
	private TicciVehiculo ticciVehiculo;

	public TicciServicio() {
	}

	public TicciServicioPK getId() {
		return this.id;
	}

	public void setId(TicciServicioPK id) {
		this.id = id;
	}

	public Date getServFecha() {
		return this.servFecha;
	}

	public void setServFecha(Date servFecha) {
		this.servFecha = servFecha;
	}

	public BigDecimal getServNumeroOrden() {
		return this.servNumeroOrden;
	}

	public void setServNumeroOrden(BigDecimal servNumeroOrden) {
		this.servNumeroOrden = servNumeroOrden;
	}

	public String getServObservacion() {
		return this.servObservacion;
	}

	public void setServObservacion(String servObservacion) {
		this.servObservacion = servObservacion;
	}

	public BigDecimal getServTiempoAprox() {
		return this.servTiempoAprox;
	}

	public void setServTiempoAprox(BigDecimal servTiempoAprox) {
		this.servTiempoAprox = servTiempoAprox;
	}

	public BigDecimal getServValorTotal() {
		return this.servValorTotal;
	}

	public void setServValorTotal(BigDecimal servValorTotal) {
		this.servValorTotal = servValorTotal;
	}

	public List<TicciAcceXServ> getTicciAcceXServs() {
		return this.ticciAcceXServs;
	}

	public void setTicciAcceXServs(List<TicciAcceXServ> ticciAcceXServs) {
		this.ticciAcceXServs = ticciAcceXServs;
	}


	public List<TicciConcXServ> getTicciConcXServs() {
		return this.ticciConcXServs;
	}

	public void setTicciConcXServs(List<TicciConcXServ> ticciConcXServs) {
		this.ticciConcXServs = ticciConcXServs;
	}

	public TicciCliente getTicciCliente() {
		return this.ticciCliente;
	}

	public void setTicciCliente(TicciCliente ticciCliente) {
		this.ticciCliente = ticciCliente;
	}

	public TicciVehiculo getTicciVehiculo() {
		return this.ticciVehiculo;
	}

	public void setTicciVehiculo(TicciVehiculo ticciVehiculo) {
		this.ticciVehiculo = ticciVehiculo;
	}

	public Long getVehiCons() {
		return vehiCons;
	}

	public void setVehiCons(Long vehiCons) {
		this.vehiCons = vehiCons;
	}

	public Long getClieCons() {
		return clieCons;
	}

	public void setClieCons(Long clieCons) {
		this.clieCons = clieCons;
	}
	
}